package com.cug.smartranch.animal.admin.dto.req;


import com.alibaba.fastjson2.JSON;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 动物记录新增接口请求参数实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "动物记录新增参数")
public class AnimalSaveReqDTO {
    /**
     * 动物名称
     */
    @Schema(description = "动物名称（不允许与已有动物重名）",
            example = "熊猫1号",
            required = true)
    private String animalName;

    /**
     * 动物年龄
     */
    @Schema(description = "动物年龄",
            example = "11",
            required = true)
    private Integer age;

    @Schema(description = "动物性别 0：雄性 1：雌性",
            example = "0",
            required = true)
    /**
     * 动物性别
     */
    private Integer gender;

    @Schema(description = "动物物种",
            example = "哺乳类",
            required = true)
    /**
     * 动物物种
     */
    private String species;

    @Schema(description = "动物颜色",
            example = "黑白色",
            required = true)
    /**
     * 动物颜色
     */
    private String color;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
